﻿#pragma once
#include "pch.h"

class ConfigManager {
public:
    SINGLETON_DEFINE(ConfigManager);
    bool LoadConfig(const std::string &filepath);
    KafkaParam GetKafkaParam() { return _kafka_param; }
    std::vector<std::shared_ptr<DeviceInfo>> GetAllDeviceInfo() { return _devices; }

private:
    ConfigManager() = default;
    std::vector<std::shared_ptr<DeviceInfo>> _devices; //所有的设备信息
    KafkaParam _kafka_param;
};
